package jmu.cze.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class OnFlight {
    private Integer onFlightID;
    private Integer flightID;
    private Double executionPrice;
    private String currentStatus;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date estimatedTakeoffTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date actualTakeoffTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date estimatedArrivalTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date actualArrivalTime;
    private String boardingGate;
}